class Classification {
  late String classId;
  String? title;
  String? classImgUrl;
  int? bookNum;

  Classification(this.classId,
      {this.title,
      this.classImgUrl,
      this.bookNum = 0});

  Classification.fromJson(Map<String, dynamic> json) {
    classId = json['classId'];
    title = json['title'];
    classImgUrl = json['classImgUrl'];
    bookNum = json['bookNum'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['classId'] = this.classId;
    data['title'] = this.title;
    data['classImgUrl'] = this.classImgUrl;
    data['bookNum'] = this.bookNum;
    return data;
  }
}
